tongzhiurl="http://localhost:3006/tongzhi"
// 通知招标公告


function appendMeitissss(value){
    let liTag=document.createElement("li");
    let span=document.createElement("span");
    let span2=document.createElement("span");
    let aTag=document.createElement("a");
    span.textContent=value.time.split("/")[0];
    span2.textContent="\\"+value.time.split("/")[1];
    span.className="BigDate";
    aTag.href="#";
    aTag.textContent=value.title;
    liTag.appendChild(span);
    liTag.appendChild(span2);
    liTag.appendChild(aTag) ;   
    return liTag;
}


let tongzhiRes=new XMLHttpRequest();
tongzhiRes.open("GET",tongzhiurl,true);
tongzhiRes.onreadystatechange=function(){
    if(tongzhiRes.readyState===4 && tongzhiRes.status===200){
        let node=document.getElementById("tongzhi");
        let value=JSON.parse(tongzhiRes.responseText);
        for(let i=0;i<value.length;i++){
            node.appendChild(appendMeitissss(value[i]));
        }
    }
}
tongzhiRes.send()